package com.chris.model;

/**
 * 状态码、提示信息
 */
public enum ResultCode {
    CLIENT_AUTHENTICATION_FAILED(1001,"客户端认证失败"),
    USERNAME_OR_PASSWORD_ERROR(1002,"用户名或密码错误"),
    UNSUPPORTED_GRANT_TYPE(1003,"不支持的认证模式"),
    TOKEN_INVALID(1004,"token已失效！"),
    NO_PERMISSION(1005,"无权限访问!"),
    UNAUTHORIZED(401,"系统错误"),
    ;
    private int code;
    private String msg;

    ResultCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
